package com.frame.database.dataconver;

import com.frame.database.dataconver.impl.*;
import com.frame.database.operate.DataBaseType;

/**
 * @Title: 系统
 * @Description:
 * @Copyright: Copyright (c) 2015
 * @Company:
 * @author 王海锋
 * @CreatedTime:2015-6-25 下午03:16:38
 * @version 1.0
 */

public class DataConversionFactory {

    public static JDataConversion getDataConversion(DataBaseType dbtype){
        if(dbtype.getType().equals(DataBaseType.MYSQL.getType()))
            return new DataConversionForMySql();
        else if(dbtype.getType().equals(DataBaseType.SQLSERVER.getType()))
            return new DataConversionForSqlServer();
        else
            return new DataConversionForOracle();
    }
}
